package cn.niit.smbms.model.reponse;

import cn.niit.smbms.entity.BaseEntity;
import lombok.*;

/**
 * @author xiaomi
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
public class BaseResponse<T> {
    //状态码
    private String resCode = "200";
    //接口相应信息
    private String resDesc = "请求成功";

    private PageVO pageParam;
    private T data;
    public BaseResponse(T data) {
        this.data = data;
    }
    public BaseResponse(String resDesc){
        this.resDesc = resDesc;
    }
    public BaseResponse(String resCode, String resDesc) {
        this.resCode = resCode;
        this.resDesc = resDesc;
    }
}
